<?php

namespace common\models\book;

use Yii;

/**
 * This is the model class for table "{{%book_category}}".
 *
 * @property int $id
 * @property int $book_id 预约ID
 * @property int $category_id 需求ID
 */
class BookCategory extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%book_category}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['book_id', 'category_id'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'book_id' => '预约ID',
            'category_id' => '需求ID',
        ];
    }

}
